<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Tutorial: Hello Dojo!</title>
</head>
<body>
       
    <h1 id="greeting">Hello zhl</h1>
    <!-- load Dojo -->
    <script src="../libs/dojo/dojo.js"
            data-dojo-config="async: true">
	</script>
  <script>
        var dojoConfig = {
            async: true,
            baseUrl:'../',
			packages: [  
        	{ name: "dojo", location: "libs/dojo" },  
        	{ name: "dijit", location: "libs/dijit" },  
        	{ name: "dojox", location: "libs/dojox" },  
        	{ name: "demo", location: "libs/demo" }  
			] 
        };
    </script>
  <script>
  require([
            'demo/myModule'
        ], function (myModule) {
            myModule.setText('greeting', 'Hello Dojo!');

            setTimeout(function () {
                myModule.restoreText('greeting');
            }, 3000);
        });
    
    </script>
</body>
</html>